#ifndef SYSLOGINSERV_H
#define SYSLOGINSERV_H

#include "serverclientsocketproc.h"
#include "base.pb.h"
#include <QSqlQuery>

class SysLoginServ : public QObject
{
    Q_OBJECT
public:
    Q_INVOKABLE SysLoginServ();
    Q_INVOKABLE void writeDbQueryResult_b(CnsComponentPtr com, const QVariantHash& v);
    void pushQueryLoginThread(CnsComponentPtr com,
         const std::string &username, const std::string &passwd);
    Q_INVOKABLE void f__on_read(CnsComponentPtr com, ServerClientSocketProc* client, cgproto::Message& msg);
    Q_INVOKABLE void f_queryPostProcessing(CnsComponentPtr com, QVariantHash &sv, QSqlQuery &q);
};

Q_DECLARE_METATYPE(SysLoginServ*)

#endif // SYSLOGINSERV_H
